This button works like a hard-wired switch. When the operator first presses the button, it changes from State 0 to State 1 and sends the State 1 value to the data source. When the operator presses and releases the button a second time, it changes from State 1 back to State 0 and sends the State 0 value to the data source.
The Maintained push button’s behavior at run time also depends on how you set up the Next state based on option and controls.
Example: Using a Maintained push button
When your display is opened at run time, the application reads the Value connection and sets the button to the state for that value, regardless of the Next state based on setting.
If the value does not match either state’s value, the error state is shown. When the operator presses the button, it changes to State 0.
Causes of run-time errors for the Maintained push button
About the Maintained push button's error state
Set up controls for the Maintained push button